package cn.yuan.org.query;

import lombok.Data;

/**
 * 查询基础模块：分页和高级查询
 */
@Data
public class Query {
    private Integer pageSize = 10;
    private Integer currentPage = 1;

    private Integer id;
    // 高级查询条件
    private String keyword;

    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
